package com.lonely.goods.domain.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lonely.common.core.domain.BaseEntity;
import com.lonely.goods.enums.GoodsEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * @author 黄志标
 * @date 2025-07-01 18:00
 * @Description: 商品部件表
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_goods_part")
public class SysGoodsPart extends BaseEntity implements Serializable {

    /**
     * 商品id
     */
    private Long goodsId;

    /**
     * 部件库
     */
    private String partLibrary;

    /**
     * 件数
     */
    private Integer quantity;

    /**
     * 部件类型
     *
     * @see GoodsEnum.GoodsPartTypeEnum
     */
    private Integer type;

    /**
     * 状态（0：启用 1：禁用）
     */
    private Integer status;

}
